package com.want.repository;

import com.want.entity.BlogContext;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Mono;

import java.util.List;

/**
 * @author WangZhiJian
 * @since 2021/11/28 0028
 */
@Repository
public interface BlogContextRepository extends ReactiveCrudRepository<BlogContext,Integer> {

    Mono<BlogContext> findByBlogId(Integer blogId);

    Mono<Void> deleteByBlogId(Integer blogId);

    Mono<Void> deleteAllByBlogIdIsIn(List<Integer> blogId);
}
